-- GENERATED SPELL FOR [Nethergarde Riftwatcher] --


function spell0_6002(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(11975,pUnit)
pUnit:RegisterEvent('Sorts_6002', 1500, 1)
end

function spell1_6002(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20823,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6002', 3000, 1)
end

function Sorts_6002(pUnit, Event)
local choix_sorts_6002 = math.random(0, 1)
if choix_sorts_6002 == 0 then
pUnit:RegisterEvent('spell0_6002', 1, 1)
end
if choix_sorts_6002 == 1 then
pUnit:RegisterEvent('spell1_6002', 1, 1)
end
end

function mob6002_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6002', math.random(1500, 3000), 1)
end

function mob6002_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6002_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6002_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6002, 1, 'mob6002_Action')
RegisterUnitEvent(6002, 2, 'mob6002_Leave')
RegisterUnitEvent(6002, 3, 'mob6002_Kill')
RegisterUnitEvent(6002, 4, 'mob6002_Die')
